<?php
	SetCookie("UN", "", time()-1); 
	SetCookie("PURVIEW", "", time()-1);
	$connection = mysql_connect("127.0.0.1","root","zhy19910209");
	mysql_select_db("song_schema",$connection);
	$U_name = $_COOKIE["UN"];
	mysql_query("UPDATE User SET state = '0' WHERE User_Name = '$U_name';");
			
	echo "<script language = \"javascript\">
		window.location.href = \"index.php\";
	</script>";
?>